define(['jquery', 'text!../../Content/shortcuts/shortcuts.html', 'common', 'knockout'], function($, html, common, ko){

	var container;

	function init(c){
		container = $(c);
		container.html(html);
		loadTeamNav();

		$(container).on('click', '.listDoc', function(e) {
			e.preventDefault();
			var $commentsUl = $(this).toggleClass('open').next('div');
			$commentsUl.toggleClass("hide");
		});
	}

	var viewModel = {
		Shortcuts : ko.observable()
	};

	function loadTeamNav(){
		common.service('shortcuts.json').success(function(data){
			viewModel.Shortcuts = data;
			ko.applyBindings(viewModel, container[0]);
		});
	}


	return {
		"init" : init
	};


});
